package com.spa.interfaces.admin;

import com.spa.application.dto.PageResult;
import com.spa.application.dto.admin.ApplyRefundListDTO;
import com.spa.infrastructure.common.ResponseMessage;
import com.spa.interfaces.BaseController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/refund")
public class AdminRefundController extends BaseController {

    @PostMapping
    public ResponseMessage<PageResult<ApplyRefundListDTO>> page() {
        return responseHelper.success();
    }

    @PostMapping("detail")
    public ResponseMessage detail() {
        return responseHelper.success();
    }

    /**
     * 审核不通过
     * @return
     */
    @PostMapping("reject")
    public ResponseMessage reject() {
        return responseHelper.success();
    }

    /**
     * 审核通过
     * @return
     */
    @PostMapping("confirm")
    public ResponseMessage confirm() {
        return responseHelper.success();
    }

    /**
     * 执行退款操作
     * @return
     */
    @PostMapping("refund")
    public ResponseMessage refund() {
        return responseHelper.success();
    }

}
